#include <stdio.h>
#include <windows.h>

int main(void)
{
    while(1)
    {
        int a, d;
        a = GetKeyState(0x41) < 0;
        d = GetKeyState(0x44) < 0;
        printf("a: %d\n", a);
        printf("d: %d\n", d);
        system("cls");
    }
}
